package com.muqi.app.user.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.muqi.app.qlearn.student.R;

public class MineInfoEntry extends RelativeLayout {
	private TextView title;
	private TextView name;
	
	public MineInfoEntry(Context context) {
		super(context);
		init(context);
	}

	public MineInfoEntry(Context context, AttributeSet attrs) {
		super(context, attrs);
		init(context);
	}

	public MineInfoEntry(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		init(context);
		
	}

	private void init(Context context) {
		LayoutInflater inflater = LayoutInflater.from(context);
		View view = inflater.inflate(R.layout.mine_info_entry, this);
		name = (TextView) view.findViewById(R.id.name);
		title = (TextView) view.findViewById(R.id.title);
		
	}

	public void setName(String names) {
		name.setText(names);
	}

	public void setTitle(String titles) {
		title.setText(titles);
	}
	
	/**
	 * 
	 */
	public void getNameValue() {
		name.getText().toString().trim();
	}
	
	
}
